<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="author" content="lijinbo" />
    <link rel="icon" href="../../../../favicon.ico" />
    <!-- PDF.js -->
    <script type="text/javascript" src="https://cdn.staticfile.org/pdf.js/3.7.107/pdf.min.js"></script><script type="text/javascript" src="https://cdn.staticfile.org/pdf.js/3.7.107/pdf.worker.min.js"></script><script type="text/javascript" src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-y/vue/2.6.14/vue.min.js"></script><script type="text/javascript" src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-ui/2.15.7/index.min.js"></script><link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-ui/2.15.7/theme-chalk/index.min.css" />
    <title>160-pdf发票合并打印</title>
    <style>
      * {
        padding: 0;
        margin: 0;
      }
      .view {
        border: 1px solid #f5f5f5;
        box-sizing: border-box;
        overflow: hidden;
        display: flex;
        flex-wrap: wrap;
      }
      .box {
        padding: 32px;
      }
      .tips {
        color: #999;
        font-size: 14px;
        margin-bottom: 6px;
      }
    </style>
    <style id="printStyle" type="text/css" media="print">
      @page {
        margin: 0;
        size: portrait;
      }
    </style>
    <script type="module" crossorigin src="../../../../static/js/160-index.html-fc46a79c.js"></script>
    <link rel="modulepreload" crossorigin href="../../../../static/common/modulepreload-polyfill-3cfb730f.js">
    <link rel="modulepreload" crossorigin href="../../../../static/common/collect-338e90a3.js">
  </head>

  <body>
    <div id="app">
      <div v-show="!isPrint" class="box">
        <el-dialog title="配置" :visible.sync="dialogVisible" width="375px">
          <el-form>
            <el-form-item label="纸张方向：">
              <el-select v-model="direction" placeholder="请选择">
                <el-option label="纵向" value="1"></el-option>
                <el-option label="横向" value="2"></el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="排版方式：">
              <el-select v-model="viewCount" placeholder="请选择">
                <el-option label="每页1张" value="1"></el-option>
                <el-option label="每页2张" value="2"></el-option>
                <el-option label="每页4张" value="4"></el-option>
              </el-select>
            </el-form-item>
          </el-form>
          <span slot="footer">
            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
          </span>
        </el-dialog>
        <p class="tips">温馨提示：请使用最新的谷歌浏览器或edge浏览器其他浏览器不支持！！！</p>
        <el-button @click="dialogVisible = true">高级设置</el-button>
        <el-button type="primary" @click="document.getElementById('uploadFile').click()">上传发票</el-button>
        <el-button type="success" @click="printHandle">打印</el-button>

        <input hidden id="uploadFile" type="file" accept=".pdf" multiple @change="selectFile" />
      </div>
      <div id="container"></div>
    </div>
    
  </body>
</html>
